﻿

// =================================================================== 
// Module说明
//====================================================================
// 创建时间：2018-04-24 10:49:10
// 负责人：Sushee
// ===================================================================

using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using OF.Component.Model;
namespace OF.Component.IDAL
{

    /// <summary>
    /// 数据访问层接口  
    /// </summary>
    internal partial interface IMsgVerificationCode
    {

        /// <summary>
        /// 根据断言条件获取单个
        /// </summary>
        MsgVerificationCodeInfo QuerySingle(Expression<Func<MsgVerificationCodeInfo, bool>> predicate);
        /// <summary>
        /// 根据断言条件获获取列表
        /// </summary>
        IList<MsgVerificationCodeInfo> QueryList(Expression<Func<MsgVerificationCodeInfo, bool>> predicate);

        /// <summary>
        ///  根据手机号与验证码类型\平台取出记录
        /// </summary>
        /// <param name="typeId">类型</param>
        /// <param name="mobile">手机号</param>
        /// <param name="platformId">平台ID</param>
        /// <param name="checkCode">验证码</param>
        /// <returns></returns>
        MsgVerificationCodeInfo GetByTypeAndMobile(int typeId, string mobile,int platformId,string checkCode);

        /// <summary>
        ///  根据手机号与验证码类型取出记录
        /// </summary>
        /// <param name="typeId">类型</param>
        /// <param name="mobile">验证码</param>
        /// <param name="platformId">平台ID</param>
        /// <returns></returns>
        MsgVerificationCodeInfo GetByMobileAndTypeId(int typeId, string mobile, int platformId);

    }

	
}